home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software 2000
/
Software 2000 Volume 1 (Disc 1 of 2).iso
/
utilities
/
u267.dms
/
u267.adf
/
DOC9110B.LZH
/
ld.man
< prev
next >
Wrap
Text File
|
1991-10-12
|
2KB
|
56 lines
LD
==
Linker. This is a very abbreviated manual entry.
Usage: ld [-d] [-dc] [-dp] [-e symbol] [-l lib] [-n] [-noinhibit-exec]
[-nostdlib] [-o file] [-r] [-s] [-t] [-u symbol] [-x] [-y symbol]
[-z] [-A file] [-Bstatic] [-D size] [-L libdir] [-M] [-N]
[-S] [-T[{text,data}] addr] [-V prefix] [-X]
[{-a,-amiga-syms-only}] [file...]
Options:
-d [Don't use]
-dc [Don't use]
-dp [Don't use]
-e symbol 'symbol' is the entrypoint of the loaded
program.
-l x Is an abbreviation for the library file
libx.a, searched for in any directories
specified with -L and then in the standard
location (gcc:lib).
-n [Don't use]
-noinhibit-exec Generate an executable even if errors occur.
-nostdlib Do not use the standard location for library
files.
-o file The output is to 'file' rather than 'a.out'.
-r [Don't use]
-s Strip the symbol table from the output.
-t Display the name of each file as it is
processed.
-u symbol Enter 'symbol' as undefined (ie, required).
Makes it possible to load just from a library.
-x preserve only global symbols.
-y symbol Display each file in which 'symbol' appears.
-z [Don't use]
-A file [Don't use]
-Bstatic [Don't use]
-D size [Don't use]
-L libdir Add 'libdir' to the front of the standard
locations searched for '-l' files.
-M Produce a simple link map.
-N [Don't use]
-S Remove all symbols except locals and globals.
-T[{text,data}] addr [Don't use]
-V prefix [Something to do with Sets -watch this space]
-X Discard local symbols.
{-a,-amiga-syms-only} [Errm - I can't tell what this does!]
Point to watch: LD processes each input as it comes, and won't go back
to extract anything it finds it needs later. So, you have to be a
little careful about the order of input.
The entry point is the first file linked, so a typical command line is
> ld -o foo -s gcc:lib/arpc.o foo.o -l pdc -l amiga